import request from '@/utils/request'
// 公共接口

// 图片上传
export function uploadFlie(data) {
  return request({
    url: '/uploadFlie',
    method: 'post',
    data: data
  })
}

// 获取后台左侧导航
export function getMenus(val) {
  const data = {
    ascriptionId: val.ascriptionId, //用户id
    userId: val.userId  //用户id
  }
  return request({
    url: '/getBackstageMenus',
    method: 'post',
    data: data
  })
}

// 获取权限信息
export function getJurisdictionInfo(data) {
  return request({
    url: '/getJurisdiction',
    method: 'post',
    data: data
  })
}